home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / examples / exam32 / readme < prev    next >
Text File  |  1995-09-27  |  618b  |  16 lines

  1.  
  2.  
  3. This example demonstrates how to locally cache a method lookup so
  4. as to totally avoid the runtime overhead of future multiple lookups.
  5.  
  6. Note that the reason that it's ok to use it here is that since it's
  7. being used with the exact same object over and over the method would
  8. not change.  If print_method is used on an object which is not an
  9. instance of the same class as myObj unpredictable results will happen
  10. because print_method may not be the method which is associated with
  11. the new object and the gPrint generic.  There is no lookup when using
  12. print_method.
  13.  
  14.  
  15. (To build see the readme file in the first example.)
  16.